<div data-role="content">
<?php if( isset( $okmsg ) ) echo '<span class="okmsg"> &middot; '.$okmsg.'</span><br /><br />'; elseif( isset( $komsg ) ) echo '<span class="komsg"> &middot; '.$komsg.'</span><br /><br />'; ?>
<form method="post" action="register_client.php">
  Usuari: <input type="text" name="username" value="<?php if( !empty( $_POST['username'] ) ) echo $_POST['username']; ?>" /><br />
  Password: <input type="password" name="password" value="<?php if( !empty( $_POST['password'] ) )  echo $_POST['password']; ?>"  /><br />
  Nom: <input type="text" name="firstName" value="<?php if( !empty( $_POST['firstName'] ) )  echo $_POST['firstName']; ?>"  /><br />
  Cognom: <input type="text" name="lastName" value="<?php if( !empty( $_POST['lastName'] ) )  echo $_POST['lastName']; ?>" /><br />
  Carrer: <input type="text" name="address[street]" value="<?php if( !empty( $_POST['address']['street'] ) )  echo $_POST['address']['street']; ?>" /><br />
  Nº carrer: <input type="text" name="address[number]" value="<?php if( !empty( $_POST['address']['number'] ) )  echo $_POST['address']['number']; ?>" /><br />
  Ciutat: <input type="text" name="address[city]" value="<?php if( !empty( $_POST['address']['city'] ) ) echo $_POST['address']['city']; ?>" /><br />
  Codi postal: <input type="text" name="address[postalCode]" value="<?php if( !empty( $_POST['address']['postalCode'] ) )  echo $_POST['address']['postalCode']; ?>" /><br />
  Pais: <input type="text" name="address[country]" value="<?php if( !empty( $_POST['address']['country'] ) )  echo $_POST['address']['country']; ?>" /><br />
  <input type="submit" value="Registrar-me" data-theme="b" />
</form>
</div>